import request from "@/utils/request";

export function login(data) {
  return request({
    url: "/datac/web/api/login",
    method: "post",
    data,
  });
}

export function getInfo(token) {
  return request({
    url: "/datac/web/api/token",
    method: "get",
    params: { token },
  });
}

export function logout() {
  return request({
    url: "/datac/web/api/logout",
    method: "post",
  });
}



// 加密 
export function Encryption(data) {
  return request({
    url: "/file/encodeFile",
    method: "post",
    data,
    
  });
}



export function secretKey(data) {
  return request({
    url: "/file/findCodeAll",
    method: "post",
    data
  });
}


export function JEncryption(data) {
  return request({
    url: "/file/decodeFile",
    method: "post",
    data,
    
  });
}


export function Historical(data) {
  return request({
    url: "/record/findByPage",
    method: "post",
    data
  });
}